// login mobile 13800000002 password hm#qd@23!

import service from "@/utils/request";

/**
 * @name login
 * @description 登录
 * @param {string} mobile 手机号
 * @param {string} password 密码 
 * 
*/
export function login(mobile, password) {
  return service({
    url: "/sys/login",
    method: "post",
    headers:{"Content-Type":"application/json"},
    data:{
      mobile,
      password
    }
  });
}

// 获取用户的信息
export function getUserInfo() {
  return service({
    url: "/sys/profile",
    method: "get"
  })
}

// 修改密码
export function updatePassword(data) {
  return service({
    url: "/sys/user/updatePass",
    method: "PUT",
    data
  })
}


